package com.lj.demo.orderService.client;

import com.lj.demo.commonutils.daoVo.CourseWebVoOne;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: liujiang
 * @Date: 2021/01/08/14:25
 * @Description:
 */
@Component
@FeignClient(name = "service-edu")
public interface EduClient {
    //根据课程id获取课程信息
    @GetMapping("/eduservice/courseFront/getDto/{courseId}")
    public CourseWebVoOne getDto(@PathVariable("courseId") String courseId);
}
